package com.yhgm.controller;

import com.yhgm.service.impl.AliyunMsgSendServiceImpl;
import com.yhgm.utils.R;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.concurrent.ExecutionException;

@RestController
@RequestMapping("aliyunMsg")
public class AliyunMsgSendController {
    @Resource
    private AliyunMsgSendServiceImpl aliyunMsgSendService;
    @GetMapping("send")
    public R send(String phone) throws ExecutionException, InterruptedException {
        // TODO: 2024/5/21 msg template
        return aliyunMsgSendService.send(phone);
    }
}
